from selenium import webdriver
import time

driver = webdriver.Chrome()
# driver.get('https://www.baidu.com')

js = 'alert("这个是弹框")'
# 执行js语句
driver.execute_script(js)

time.sleep(3)
driver.quit()
